import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import Header from './Header'
import Dialog from './Dialog'
class App extends Component {
  state = {
    car: {
      brand: '扣你鸡娃',
      price: 1314
    }
  }
  render() {
    return (
      <div>
        <h1>App组件</h1>
        <Header>首页</Header>
        <Header>登录</Header>
        <Dialog car={this.state.car} money={123} title={(value) => <h3>温馨提示 --{value}</h3>}>
          <input type="text" />
        </Dialog>
      </div>
    )
  }

}

ReactDOM.render(<App></App>, document.getElementById('root'))